<?php

/**
 * SearchStadiumForm class.
 * SearchStadiumForm is the data structure for keeping
 * index search form data. It is used by the 'indexSearch' action of 'StadiumController'.
 */
class SearchStadiumForm extends CFormModel
{
	public $area;
    public $sportType;

	/**
	 * Declares the validation rules.
	 * The rules state that username and password are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(
            array('area, sportType', 'numerical', 'integerOnly'=>true),
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
            'area'=>Yii::t('site', 'Area'),
            'sportType'=>Yii::t('site', 'Sport Type'),
		);
	}
}
